package bookstore;

import java.io.Serializable;

public class Book implements Serializable {
    //属性
   private String name;
   private int num;
   private String writer;

    public Book(int num, String name, String writer) {
        this.num = num;
        this.name = name;
        this.writer = writer;
    }
    public Book() {
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWriter() {
        return writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }
}
